cmake_minimum_required(VERSION 3.10)

project(opencv_tutorial)

add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/source-charset:utf-8>")

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG 	
${CMAKE_SOURCE_DIR}/output
)

# opencv
set(OPENCV_LIB 
opencv_world453d.lib

)
include_directories(packages/opencv/include)
link_directories(packages/opencv/lib)
link_libraries(${OPENCV_LIB})

set(SRC 
src/main.cpp

)
include_directories(include/)

add_subdirectory(src/samples)

ADD_LIBRARY(algorithm SHARED ${SRC})

add_executable(${PROJECT_NAME} ${SRC})

# add_custom_command(TARGET project PRE_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy_directory
# ${CMAKE_SOURCE_DIR}/assets $<TARGET_FILE_DIR:project>/assets
# )
